home *** CD-ROM | disk | FTP | other *** search
/ Programming in Microsoft Windows with C# / Programacion en Microsoft Windows con C#.iso / Codigo / Introducción a Windows Forms / InheritWithConstructor / InheritWithConstructor.cs next >
Encoding:
Text File  |  2001-01-15  |  521 b   |  19 lines

  1. //-----------------------------------------------------
  2. // InheritWithConstructor.cs ⌐ 2001 by Charles Petzold
  3. //-----------------------------------------------------
  4. using System;
  5. using System.Drawing;
  6. using System.Windows.Forms;
  7.  
  8. class InheritWithConstructor: Form
  9. {
  10.      public static void Main()
  11.      {
  12.           Application.Run(new InheritWithConstructor());
  13.      }
  14.      public InheritWithConstructor()
  15.      {
  16.           Text = "Inherit with Constructor";
  17.           BackColor = Color.White;
  18.      }
  19. }